import Demo2.text;

public class Text {
    public static void func(text.Animal animal){
        animal.eat();
    }
    public static void run(Irun irun){
        irun.run();
    }
    public static void swim(Iswim iswim){
        iswim.swim();
    }
    public static void walk(Iwalk iwalk){
        iwalk.walk();
    }
    public static void fly(Ifly ifly){
        ifly.fly();
    }
    public static void main(String[] args) {
        Dog dog = new Dog("小黑",2);
        Cat cat = new Cat("小白",5);


    }
}
